function [tree, list] = predInfHelicopter_MPIB2()
% Configure the Helicopter version of the 2011 predictive inference task.
% JTM's version for fMRI
clear classes
% path to task svn repository (latest version) and local subfunctions
addpath(genpath(fullfile('..','taskCode','goldLab','predictiveInference')));
addpath('stimSubFx');


% subject ID info
[dataFileName, taskPhase, cbal id] = gatherSubInfo('predInfFMRI');


[dm options logic av]= initBlock(dataFileName, taskPhase, cbal)


if strmatch(taskPhase, 'demo', 'exact')
% heliVisInstruct(av, logic)
%% THIS IS WHERE THE DEMO WILL GO, once it is up and running...

tree=[]
list=[]
else



%% Run first Block
% Wire up the logic and audio-visual objects
%   with flow control and user inputs
[tree, list] = configurePredInf2011(logic, av, options);
tree.run();


% Use subject info to choose second block
[dataFileName, taskPhase, cbal, id] = gatherSubInfo('predInfFMRI', id, 2)



% initialize graphics and logic for second block
[dm options logic av]= initBlock(dataFileName, taskPhase, cbal)

if logic.blockStds==10
    av.pleasePressString='less windy'
elseif logic.blockStds==25
    av.pleasePressString='more windy'
end

    
% run second block
[tree, list] = configurePredInf2011(logic, av, options);
tree.run();


% visualize the task outline
% tree.gui();

% demoPredInfAV(av, logic);


end



